﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingletonDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            Earth e1 = Earth.CreateInstance(); //new Earth();
            e1.Name = "地球1";
            Earth e2 = Earth.CreateInstance(); //;
            e2.Name = "地球2";

            e1.Display();
            e2.Display();
            Console.WriteLine("Earth");
        }
    }
}
